package org.jmh.gift.dto;

import org.jmh.gift.domain.OrderGiftAddress;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Map;

@Data
public class PlaceOrderDTO {

    private String parentOrderNo;   // 父订单编号

    @NotNull(message = "请选择要购买的商品")
    private Map<Long,Integer> skuInfos; // 商品信息  key->skuId  value->num

    @NotNull(message = "请选择收货地址")
    private OrderGiftAddress address;

    @NotNull(message = "请选择支付方式")
    private Integer payType;    // 0余额直接，1支付宝，2微信,3银联

    private Integer buyNow=0; // 是否是立即购买 1=立即购买 0=购物车
    private String remark;  // 用户填写的备注

    private String uniPayOrderSn;   // 唯一的支付单编号 - 支付单单号

    private Integer businessType = 0;     // 0 礼物订单 1 充值订单

    private Long userId = 16L;
    private String username = "zhangsan";
}
